$(function() {
	let p = document.querySelector("span");
	document.onkeydown = function(event) {
		var event = event || window.event;
		p.innerHTML = event.keyCode
		return false;
	}

});
